package client;

import javax.swing.*;
import client.view.MFWindow;
import org.apache.http.HttpHost;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.impl.client.HttpClients;

import java.awt.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by IntelliJ IDEA.
 * User: sam
 * Date: 05/02/12
 * Time: 10:39
 * To change this template use File | Settings | File Templates.
 */

public class MFClient {

    public static void main(String args[]) throws java.io.IOException
    {
        try {
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

            } catch (Exception e) {
                System.out.println(e.toString());
                e.printStackTrace();
        }

        //HttpPost httpPost = new HttpPost("http://samwootton.com:8080/mfservice/music");
        //HttpHost httpHost = new HttpHost("samwootton.com:8080/mfservice/music", 8080, "http");

        //HttpClientBuilder httpClientBuilder = HttpClientBuilder.create();

        //CloseableHttpClient closeableHttpClient = httpClientBuilder.build();
        //CloseableHttpClient closeableHttpClient = HttpClients.createDefault();
        //CloseableHttpResponse closeableHttpResponse = closeableHttpClient.execute(httpPost);


        MFWindow mfWindow = new MFWindow();
        mfWindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
